package com.wingscode.modules.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 审核记录
 *
 * @author yan
 */
@Data
@TableName("check_log")
public class CheckLogEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Integer id;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
    /**
     * 管理员id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 备注
     */
    private String remark;
    /**
     * 企业id
     */
    @TableField("agent_id")
    private Integer agentId;
    /**
     * 审核状态 1-审核通过 2-审核驳回
     */
    private Integer state;
    /**
     * 1-企业认证审核 2-渠道申请审核
     */
    private Integer type;
    @TableField(exist = false)
    private Integer rowId;
    @TableField(exist = false)
    private String userName;
}
